Optimal. Leaf size=97 \[ -\frac{B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A}{b (a+b x)}-\frac{B d n \log (a+b x)}{b (b c-a d)}+\frac{B d n \log (c+d x)}{b (b c-a d)}-\frac{B n}{b (a+b x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0835585, antiderivative size = 72, normalized size of antiderivative = 0.74, number of steps used = 4, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097, Rules used = {6742, 2490, 32} \[ -\frac{A}{b (a+b x)}-\frac{B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (b c-a d)}-\frac{B n}{b (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 2490
Rule 32
Rubi steps
\begin{align*} \int \frac{A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx &=\int \left (\frac{A}{(a+b x)^2}+\frac{B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2}\right ) \, dx\\ &=-\frac{A}{b (a+b x)}+B \int \frac{\log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx\\ &=-\frac{A}{b (a+b x)}-\frac{B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}+(B n) \int \frac{1}{(a+b x)^2} \, dx\\ &=-\frac{A}{b (a+b x)}-\frac{B n}{b (a+b x)}-\frac{B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}\\ \end{align*}
Mathematica [A] time = 0.0895557, size = 89, normalized size = 0.92 \[ \frac{-(b c-a d) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A+B n\right )+B d n (a+b x) \log (c+d x)-B d n (a+b x) \log (a+b x)}{b (a+b x) (b c-a d)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.4, size = 823, normalized size = 8.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.18632, size = 157, normalized size = 1.62 \begin{align*} -\frac{{\left (\frac{d e n \log \left (b x + a\right )}{b^{2} c - a b d} - \frac{d e n \log \left (d x + c\right )}{b^{2} c - a b d} + \frac{e n}{b^{2} x + a b}\right )} B}{e} - \frac{B \log \left (\frac{{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right )}{b^{2} x + a b} - \frac{A}{b^{2} x + a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.06594, size = 242, normalized size = 2.49 \begin{align*} -\frac{A b c - A a d +{\left (B b c - B a d\right )} n +{\left (B b d n x + B b c n\right )} \log \left (b x + a\right ) -{\left (B b d n x + B b c n\right )} \log \left (d x + c\right ) +{\left (B b c - B a d\right )} \log \left (e\right )}{a b^{2} c - a^{2} b d +{\left (b^{3} c - a b^{2} d\right )} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26185, size = 146, normalized size = 1.51 \begin{align*} -\frac{B d n \log \left (b x + a\right )}{b^{2} c - a b d} + \frac{B d n \log \left (d x + c\right )}{b^{2} c - a b d} - \frac{B n \log \left (b x + a\right )}{b^{2} x + a b} + \frac{B n \log \left (d x + c\right )}{b^{2} x + a b} - \frac{B n + A + B}{b^{2} x + a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]